import { Module, forwardRef } from '@nestjs/common';
import { BannerService } from './banner.service';
import { BannerController } from './banner.controller';
import { JwtModule } from '@nestjs/jwt';
import { TypeOrmModule } from '@nestjs/typeorm';
import { jwtConstants, signOptions } from 'src/common/auth/constants';
import { BannerEntity } from './entities/banner.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([BannerEntity]),
    JwtModule.register({
      secret: jwtConstants.secret,
      signOptions,
    }),
  ],
  controllers: [BannerController],
  providers: [BannerService]
})
export class BannerModule { }
